using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.Persistent.Base;
using DevExpress.ExpressApp.Editors;
using DevExpress.Web.ASPxEditors;

namespace Ascent.QiPei.Module.Web.Controllers
{
    public partial class EnterMoveNextControlController : ViewController
    {
        public EnterMoveNextControlController()
        {
            InitializeComponent();
            RegisterActions(components);
        }

        protected override void OnActivated()
        {
            base.OnActivated();
            this.View.ControlsCreated += View_ControlsCreated;
        }

        void View_ControlsCreated(object sender, EventArgs e)
        {
            foreach (ViewItem item in ((DetailView)base.View).Items)
            {
                if (typeof(ASPxEdit).IsInstanceOfType(item.Control))
                {
                    var edit = item.Control as ASPxEdit;

                }
            }
        }
    }
}
